package com.gitee.beiding.cloud.easy_call.config;

import com.gitee.beiding.cloud.easy_call.entity.TypeMapper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;


@Configuration
@ComponentScan(basePackages = "com.gitee.beiding.cloud.easy_call")
public class AutoConfig {

    @Bean
    public TypeMapper _easyCall_defaultMapper() {
        return new TypeMapper() {
            @Override
            public String getNameByClass(String clzz) {
                return clzz;
            }

            @Override
            public String getClassByName(String name) {
                return name;
            }
        };
    }

}
